package com.hr.service.impl;
import java.util.List;

import com.hr.dao.NoticeDao;
import com.hr.dao.impl.NoticeDaoImpl;
import com.hr.pojo.Notice;
import com.hr.service.NoticeService;
public class NoticeServiceImpl implements NoticeService{
	private NoticeDao noticeDao = new NoticeDaoImpl();
	@Override
	public List findAllNotices() {
		return noticeDao.findAllNotices();
	}
	@Override
	public void saveNotice(Notice notice) {
		
		noticeDao.saveNotice(notice);
	}
	@Override
	public Notice findNoticeById(String id) {
		
		return noticeDao. findNoticeById(id);
	}
	@Override
	public void updateNotice(Notice notice) {
		
		noticeDao.updateNotice(notice);	
	}
	@Override
	public void delete(String id) {
	
		noticeDao.deleteNotice(id);	
	}
}
